// 登录窗口
var zhuce = document.getElementById('newcount');
var denglu = document.getElementById('denglu');
var countbox = document.getElementById('countbox');
var countbox1 = document.getElementById('countbox1');
var oshaow = document.getElementsByTagName('shaow');
var odiv = document.getElementById("bindusergray")
var odiv1 = document.getElementById("bindusergray1")
var oinp = document.getElementById("in1")
var oinp2 = document.getElementById("in2")
var oinp3 = document.getElementById("in3")
var oinp4 = document.getElementById("in4")
var obody = document.getElementsByTagName('body')
// console.log(in1);

denglu.onclick = function () {
    countbox1.style.display = "block";

}
zhuce.onclick = function () {
    countbox.style.display = "block";
}
// ??键入
oinp.onblur = function () {
    odiv.style.backgroundColor = "red";
}
oinp2.onblur = function () {
    odiv.style.backgroundColor = "red";
}
oinp3.onblur = function () {
    odiv1.style.backgroundColor = "red";
}
oinp4.onblur = function () {
    odiv1.style.backgroundColor = "red";
}
// ?移出时
countbox.onmouseout = function () {
    this.onmouseleave = function () {
        countbox.style.display = "none";
    }
}
countbox1.onmouseout = function () {
    this.onmouseleave = function () {
        countbox1.style.display = "none";
    }
}
//////////////////////////////////////地址二级菜单
let op = document.getElementById('more');
let odress = document.getElementById('hidedress');
let oli = document.querySelectorAll('#hidedress li');
// console.log(oli);

op.onmouseover = function () {
    odress.style.display = "block";
    for (let i = 0; i < oli.length; i++) {
        oli[i].onmouseover = function () {
            oli[i].style.backgroundColor = "#fb6003"
            oli[i].style.color = "#fff"
        }
        oli[i].onmouseleave = function () {
            oli[i].style.backgroundColor = "white"
            oli[i].style.color = "black"
        }
    }

}
odress.onmouseleave = function () {
    odress.style.display = "none";
}
